import request from "../utils/request";
export default {
    //添加活动
    addActivity(data) {
        return request.post('/action/addAction', data, {
            method: "post"
        })
    },
    //获取活动列表
    getActionList() {
        return request.get('/action/getAllAction',  {
            method: "get"
        })
    },
    //添加活动票数信息
    addActionOrder(data) {
        return request.post('/action/addActionTicket', data, {
            method: "post"
        })
    },
    //根据id获取活动票数信息
    getActionOrderById(id) {
        return request.get(`/action/getActionTicketDetailById/${id}`, {
            method: "get",
        })
    },
    //获取活动订单list信息
    getActionOrderList() {
        return request.get('/action/getActionOrderList', {
            method: "get",
        })
    },

}